From 10fa4a128afd185ebc2f68b1b29832bd8df7edeb Mon Sep 17 00:00:00 2001 From: Chris Wong Date: Sat, 25 Apr 2015 12:36:08 +1200 Subject: [PATCH] Fix the warning to start with a lowercase letter --- src/cargo/ops/cargo_new.rs | 2 +- tests/test_cargo_new.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cargo/ops/cargo_new.rs b/src/cargo/ops/cargo_new.rs index 19fe55306..217823c2b 100644 --- a/src/cargo/ops/cargo_new.rs +++ b/src/cargo/ops/cargo_new.rs @@ -62,7 +62,7 @@ pub fn new(opts: NewOptions, config: &Config) -> CargoResult<()> { let new_name = strip_rust_affixes(dir_name); if new_name != dir_name { let message = format!( - "Note: package will be named `{}`; use --name to override", + "note: package will be named `{}`; use --name to override", new_name); try!(config.shell().say(&message, BLACK)); } diff --git a/tests/test_cargo_new.rs b/tests/test_cargo_new.rs index c73358a01..61c4c6b7c 100644 --- a/tests/test_cargo_new.rs +++ b/tests/test_cargo_new.rs @@ -99,7 +99,7 @@ test!(invalid_characters { test!(rust_prefix_stripped { assert_that(cargo_process("new").arg("rust-foo"), execs().with_status(0) - .with_stdout("Note: package will be named `foo`; use --name to override")); + .with_stdout("note: package will be named `foo`; use --name to override")); let toml = paths::root().join("rust-foo/Cargo.toml"); let mut contents = String::new(); File::open(&toml).unwrap().read_to_string(&mut contents).unwrap(); -- 2.30.2